#pragma once

#include <ace/Event_Handler.h>
#include <ace/Reactor.h>

class Timer:public ACE_Event_Handler
{
public:
    Timer(int delay,int interval,void * arg = 0);
    virtual ~Timer();
    virtual int handle_timeout(const ACE_Time_Value &current_time, const void *act=0);

private:
    int m_reactorId;
};

